<script type="text/javascript">
function apply_attendance_to_all() {
	var value = document.forms["form_apply_attendance_to_all"].elements["attendance"].value;
	var form = document.forms["applicants_table"];
	for (var i = 0; i < form.elements.length; ++i) {
		var elem = form.elements[i];
		var name = elem.name;
		if (name.substring(0,74)=="applicant_more_info$applicant_more_info_attendee_exam_status$applicant_id$" && elem.value==0) {
			elem.value = value;
			field_change(elem.name,"");
		}
	}
}
function remove_attendance() {
	var form = document.forms["applicants_table"];
	for (var i = 0; i < form.elements.length; ++i) {
		var elem = form.elements[i];
		var name = elem.name;
		if (name.substring(0,74)=="applicant_more_info$applicant_more_info_attendee_exam_status$applicant_id$") {
			elem.value = 0;
			field_change(elem.name,"");
		}
	}
}
</script>
<div style='border:1px solid #606060;margin-bottom:3px'>
<form name='form_apply_attendance_to_all' onsubmit='apply_attendance_to_all();return false' style='margin:0px'>
Apply the following exam attendance to all applicants in the list below having 'Not Yet' attendance:
<select name='attendance'>
<option value='1'>Yes</option>
<option value='2'>No</option>
<option value='3'>Partially</option>
<option value='4'>Cheat</option>
</select>
<button type='submit'>Go</button>
</form>
<form name='form_remove_attendance' onsubmit='remove_attendance();return false'>
Remove attendance (set to 'Not Yet') to all applicants in the list below:
<button type='submit'>Go</button>
</form>
</div>
